<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 加载部部样式及META信息 -->
    <title>管理员</title>
    <div th:replace="common/meta"></div>
    <script>
        require.config.jsname="backend/doc/index";
        require.config.modulename="admin"
        require.config.controllername="auth.admin"
        require.config.actionname="add"
        require.config.moduleurl="/admin/add"
    </script>
</head>
<body class="inside-header inside-aside is-dialog">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <div class="content">
                        <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="/sys/doc/save">
                            <input type="hidden" name="id" th:value="${doc.id}">
                            <!-- name  -->
                            <div class='form-group'>
                                <label for='name' class='control-label col-xs-12 col-sm-2'>标题:</label>
                                <div class='col-xs-12 col-sm-8'>
                                    <input id='name' th:value="${doc.name}" type='text' class='form-control'  name='name'>
                                </div>
                            </div>
                            <!-- path  -->
                            <div class="form-group">
                                <label for="path" class="control-label col-xs-12 col-sm-2">附件:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="form-inline">
                                        <input id="path" data-rule="required" class="form-control"
                                               size="50" name="path" type="text" th:value="${doc.path}" readonly>
                                        <span><button type="button" id="plupload-attachfile" class="btn btn-danger plupload" data-input-id="path" data-multiple="false"><i class="fa fa-upload"></i> 上传</button></span>
                                        <!--   <span><button type="button" id="fachoose-attachfile" class="btn btn-primary fachoose" data-input-id="c-attachfile" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>-->
                                    </div>
                                </div>
                            </div>
                            <!-- desc  -->
                            <div class='form-group'>
                                <label for='des' class='control-label col-xs-12 col-sm-2'>详情:</label>
                                <div class='col-xs-12 col-sm-8'>
                                    <input id='des' type='text' class='form-control' th:value="${doc.des}"  name='des'>
                                </div>
                            </div>

                            <div class="form-group hidden layer-footer">
                                <label class="control-label col-xs-12 col-sm-2"></label>
                                <div class="col-xs-12 col-sm-8">
                                    <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                    <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="common/script"></div>
</body>
</html>